<?php
/**
 *
 * @author xnny
 * @version 1.0
 */

/*
 * 搜索相关
 */
class wt_search
{
	/*
	 * 字符串处理
	 */
	function str()
	{
	}
	
	/*
	 * 进入搜索
	 */
	static function so($keyWord, $num = 10, $start = 0)
	{
		/*
		 * '%css%'
		 */
		$db = mysqlDB::con();
		$sql = 'SELECT `Pid` , `Post_Title` , `Post_Link` , `Post_PubDate` , `Post_Creator` , `Post_Content` , `BID` FROM `post_into` WHERE `Post_Title` LIKE \'%' . $keyWord . '%\' ORDER BY `Post_PubDate`  ASC ';
		$arr = $db->selectLimit($sql, $num, $start);
		return $arr;
	}
}